// 认证中间件
export default defineNuxtRouteMiddleware((to, from) => {
  // TODO: 实现认证检查
  const authStore = useAuthStore();
  if (!authStore.isLoggedIn) {
    return navigateTo({path:'/auth/login',
      query:{redirect:to.fullPath}});
  }
  return;
})

